function dispDate(dateVal) {

    DaystoAdd = dateVal;
    TodaysDate = new Date();
    TodaysDay = new Array('Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jum&#39;at', 'Sabtu');
    TodaysMonth = new Array('Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember');
    DaysinMonth = new Array('31', '28', '31', '30', '31', '30', '31', '31', '30', '31', '30', '31');

    function LeapYearTest(Year) {
        if (((Year % 400) === 0) || (((Year % 100) !== 0) && (Year % 4) === 0)) {
            return true;
        } else {
            return false;
        }
    }

    CurrentYear = TodaysDate.getYear();
    if (CurrentYear < 2000) CurrentYear = CurrentYear + 1900;
    currentMonth = TodaysDate.getMonth();
    DayOffset = TodaysDate.getDay();
    currentDay = TodaysDate.getDate();
    month = TodaysMonth[currentMonth];
    if (month == 'February') {
        if (((CurrentYear % 4) === 0) && ((CurrentYear % 100) !== 0) || ((CurrentYear % 400) === 0)) {
            DaysinMonth[1] = 29;
        } else {
            DaysinMonth[1] = 28;
        }
    }
    days = DaysinMonth[currentMonth];
    currentDay += DaystoAdd;
    if (currentDay > days) {
        if (currentMonth == 11) {
            currentMonth = 0;
            month = TodaysMonth[currentMonth];
            CurrentYear = CurrentYear + 1;
        } else {
            month = TodaysMonth[currentMonth + 1];
        }
        currentDay = currentDay - days;
    }
    DayOffset += DaystoAdd;

    function offsettheDate(offsetCurrentDay) {
        if (offsetCurrentDay > 6) {
            offsetCurrentDay -= 6;
            DayOffset = TodaysDay[offsetCurrentDay - 1];
            offsettheDate(offsetCurrentDay - 1);
        } else {
            DayOffset = TodaysDay[offsetCurrentDay];
            return true;
        }
    }

    offsettheDate(DayOffset);
    TheDate = DayOffset + ', ';
    TheDate += currentDay + ' ';
    TheDate += month + ' ';
    if (CurrentYear < 100) CurrentYear = "19" + CurrentYear;
    TheDate += CurrentYear;
    document.write(' ' + TheDate);
}

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
// Membuat 2 variable dengan nama dan tanggal
var monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; 
var dayNames= ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]

// Membuat Objek tanggal
var newDate = new Date();
// Membuat jam sama dengan jam kita
newDate.setDate(newDate.getDate());
// Pengaturan tanggal dan jam
$('#Date').html(dayNames[newDate.getDay()] + " " + newDate.getDate() + ' ' + monthNames[newDate.getMonth()] + ' ' + newDate.getFullYear());

setInterval( function() {
// Create a newDate() object and extract the seconds of the current time on the visitor's
var seconds = new Date().getSeconds();
// Add a leading zero to seconds value
$("#sec").html(( seconds < 10 ? "0" : "" ) + seconds);
},1000);

setInterval( function() {
// Create a newDate() object and extract the minutes of the current time on the visitor's
var minutes = new Date().getMinutes();
// Add a leading zero to the minutes value
$("#min").html(( minutes < 10 ? "0" : "" ) + minutes);
},1000);

setInterval( function() {
// Create a newDate() object and extract the hours of the current time on the visitor's
var hours = new Date().getHours();
// Add a leading zero to the hours value
$("#hours").html(( hours < 10 ? "0" : "" ) + hours);
}, 1000); 
});
</script>